import { createContext, useContext } from "react";

interface StContextType {
	reloadData: () => void;
	loadData: (pageIndex: number) => void;
}
export const StContext = createContext<StContextType>({
	reloadData: () => undefined,
	loadData: (_) => undefined,
});

export function useStContext() {
	return useContext(StContext);
}
